<template>
  <u-collapse
    ref="collapse"
    :head-style="{ 'font-size': '34rpx', 'font-weight': '700' }"
  >
    <u-collapse-item :title="title">
      <FollowList :listArr="ListArr" />
    </u-collapse-item>
  </u-collapse>
</template>

<script>
import FollowList from "./followList.vue";
export default {
  props: {
    list: {
      type: Array,
      default: () => [],
    },
    title: {
      type: String,
    },
  },
  components: {
    FollowList,
  },
  computed: {
    ListArr() {
      console.log(this.list);
      this.$nextTick(() => {
        this.$refs.collapse.init();
      });
      return this.list;
    },
  },
};
</script>

<style lang="scss" scoped>
</style>